package com.example.crmdemo.Crm.service;

import com.example.crmdemo.Crm.entity.User;

import java.util.List;

public interface UserService {
    String login(String username, String password);
    void register(User user);
    void updatePassword(String username, String newPassword);
    void deleteUser(String username);
    void updateUser(User user);
    User getUserByUsername(String username);
    List<User> getAllManagers();
    List<User> getAllUsers();
    List<User> searchUsers(String username);
}
